<?php

namespace Common\Model;
use Think\Model;

class KeywordModel extends Model{

	/**
	 * 获取热门关键字
	 * @param  string $module 所属模块
	 */
	public function get_hot_list($module = ''){
		if($module){
			$where['module'] = $module;
		}

		$keywords = $this->where($where)->order('order_id,id desc')->getField('content', true);

		return $keywords;
	}
}